/**
 * Copyright (C) 2018-2020
 * All rights reserved, Designed By www.gzchengguo.cn

 */
package link.chengguo.orangemall.modules.wechat.service.mapper;

import link.chengguo.orangemall.common.mapper.CoreMapper;
import link.chengguo.orangemall.modules.wechat.domain.OrangeArticle;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
* @author chengguo
* @date 2020-05-12
*/
@Repository
public interface ArticleMapper extends CoreMapper<OrangeArticle> {
    @Update("update orange_article set visit=visit+1 " +
            "where id=#{id}")
    int incVisitNum(@Param("id") int id);

}
